import request from '@/utils/request'


export function createYzJob(data) {
  return request({
    url: '/api/YzJob/save',
    method: 'post',
    data
  })
}

export function delYzJob(id) {
  return request({
    url: '/api/YzJob/del/'+id,
    method: 'post'
  })
}


export function batchDel(data) {
  return request({
    url: '/api/YzJob/batch/del',
    method: 'post',
    data
  })
}

export function editYzJob(data) {
  return request({
    url: '/api/YzJob/update',
    method: 'post',
    data
  })
}



export function getInfo(id) {
  return request({
    url: '/api/YzJob/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPageYzJob(query) {
  return request({
    url: '/api/YzJob/getPage',
    method: 'post',
    data: query
  })
}

export function getListYzJob(query) {
  return request({
    url: '/api/YzJob/getList',
    method: 'post',
    data: query
  })
}




